<?php

namespace app\admin\validate;

use app\common\enums\StatusEnum;
use think\Validate;

class Slides extends Validate
{
    protected $rule = [
        'image|幻灯片' => 'require',
        'langId' => 'number',
        'sort_num|权重' => 'require|number',
        'status' => 'in:' . StatusEnum::DISABLED . ',' . StatusEnum::ENABLED,
    ];

    protected $message = [
        'image' => '请上传图片',
    ];
}